package com.example.springboot01.service.impl;

import com.example.springboot01.dao.StudentDao;
import com.example.springboot01.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StudentServiceimpl implements StudentService {
    @Autowired
    private StudentDao studentDao;
    @Override
    public void DeleteById(Integer id) {
        if (id==null) {
            System.out.println("参数不能为空");
            return;
        }
        studentDao.DeleteById(id);
    }

}
